<?php

require "../utility.php";

if (check_keys($_COOKIE, "sessionID")) {
    $session_id = $_COOKIE["sessionID"];
    $conn = connect_mysql();
    $delete_str = "DELETE FROM Session WHERE ID = ?;";
    $delete_stmt = $conn->prepare($delete_str);
    $delete_stmt->bind_param("s", $session_id);
    $delete_stmt->execute();
    $conn->close();
}

?>